Using XCTUnwrap Instead of Guard in Unit Tests
In 2015, I sang praises for the guard
statement to unwrap optional values in tests. But since then, we were blessed with XCUnwrap
, which makes things even better in my book. I received a comment on the 2015 piece a couple weeks ago, so I figured I might as well document that things have changed in the meantime!